package com.ziyun.erp.modules.goodsCategory.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.goodsCategory.entity.GoodsCategoryRelationEntity;
import io.renren.common.utils.PageUtils;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 分类关联热门商品表
 *
 * @author 
 * @email 
 * @date 2018-08-29 10:32:00
 */
public interface GoodsCategoryRelationService extends IService<GoodsCategoryRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //按category_id查询分类关联热门商品表
    GoodsCategoryRelationEntity getByCategoryId(Integer categoryId);

    //按category_id更新分类关联热门商品表
    int updateByGoodsCategoryId(GoodsCategoryRelationEntity goodsCategoryRelationEntity);

    BigDecimal getCommissionByGoodsId(Integer goodsId);
}

